package pers.xx.sbm.dao;

import org.springframework.stereotype.Repository;
import pers.xx.sbm.entity.MenuRole;

import java.util.List;

/**
 * @author XieXing
 * @description 菜单权限操作Mapper
 * @date 2020/9/15 21:01
 */
@Repository
public interface MenuRoleMapper extends BaseMapper<MenuRole> {
    /**
     * @description 批量插入菜单角色
     * @author XieXing
     * @date 2020/9/15 21:17
     */
    int insertBatch(List<MenuRole> menuRoles);

    /**
     * @description 根据角色id删除MenuRole
     * @author XieXing
     * @date 2020/9/15 21:33
     */
    int deleteByRoleId(Integer roleId);
}